﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/App_Layout/Sihterica.Master" CodeBehind="GlavnaPloca.aspx.cs" Inherits="TimeTracker.Web.Admin.GlavnaPloca" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div id="main-content">
			
	<noscript>
		<div class="notification error png_bg">
			<div>
			    Vaš browser ne podržava javasrcipt. Omogućite javascript ili instalirajte noviji browser.	
			</div>
		</div>
	</noscript>
	
	<h2>Glavna ploča</h2>
	<p id="page-intro">Izaberite opcije</p>
	
	<div class="clear"></div>
	
	<div class="content-box">
		
		<div class="content-box-header">
			
			<h3>Izaberite jednu od opcija</h3>
			
			<ul class="content-box-tabs">
				<li><a href="#tab1" class="default-tab">Organizacione šeme</a></li>
			</ul>
			
			<div class="clear"></div>
			
		</div>
		
		<div class="content-box-content">
			
		    <div class="tab-content default-tab" id="tab1">
				
                <asp:GridView ID="gvOrganizacioneSeme" DataKeyNames="OrganizacionaSemaId" PageSize="20" AutoGenerateColumns="false"
                    AllowPaging="true" AllowSorting="true" runat="server" EmptyDataText="Nema organizacionih šema" ShowFooter="true"
                    OnRowCommand="GridViewOrganizacioneSeme_OnRowCommand"
                    OnRowDeleting="GridViewOrganizacioneSeme_OnRowDeleting" 
                    OnRowEditing="GridViewOrganizacioneSeme_OnRowEditing" 
                    OnRowCancelingEdit="GridViewOrganizacioneSeme_OnRowCancelingEdit"
                    OnRowUpdating="GridViewOrganizacioneSeme_OnRowUpdating">
                    <Columns>
                        <asp:TemplateField HeaderText="Organizaciona šema Id" Visible="false">
                            <EditItemTemplate>
                                <asp:Label ID="lblOrganizacionaSemaId" runat="server" Text='<%# Bind("OrganizacionaSemaId") %>'></asp:Label>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblOrganizacionaSemaId" runat="server" Text='<%# Eval("OrganizacionaSemaId") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Ime organizacione šeme">
                            <EditItemTemplate>
                                <asp:TextBox Width="190" ID="tbImeOrganizacioneSeme" runat="server" Text='<%# Bind("ImeOrganizacioneSeme") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblIme" runat="server" Text='<%# Eval("ImeOrganizacioneSeme") %>'></asp:Label>
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox Width="190" ID="tbNovoImeOrganizacioneSeme" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                                                
                        <asp:TemplateField HeaderText="Izmeni" ShowHeader="false">
                            <EditItemTemplate>
                                <asp:LinkButton ID="lbkIzmeni" runat="server" CausesValidation="true" CommandName="Update" Text="Izmeni"></asp:LinkButton>
                                <asp:LinkButton ID="lbkOtkazi" runat="server" CausesValidation="true" CommandName="Cancel" Text="Otkaži"></asp:LinkButton>
                            </EditItemTemplate>
                            <FooterTemplate> 
                                <asp:LinkButton ID="lnkDodaj" runat="server" CausesValidation="False" CommandName="Dodaj" Text="Dodaj"></asp:LinkButton> 
                            </FooterTemplate> 
                            <ItemTemplate> 
                                <asp:LinkButton ID="lnkIzmeni" runat="server" CommandArgument='<%# Eval("OrganizacionaSemaId") %>' CausesValidation="False" CommandName="Edit" Text="Izmeni"></asp:LinkButton> 
                            </ItemTemplate> 
                        </asp:TemplateField>
                        
                        <asp:CommandField HeaderText="Obriši" ShowDeleteButton="True" DeleteText="Obriši" ShowHeader="True" /> 
                    </Columns>
                    </asp:GridView>
				
		    </div>
			
		</div> 
		
	</div>
	
	<div class="clear"></div>
</div>
</asp:Content>